package com.vote.business.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.vote.common.annotation.Excel;
import com.vote.common.core.domain.BaseEntity;

/**
 * 投票选项对象 vote_option
 * 
 * @author ruoyi
 * @date 2025-07-14
 */
public class VoteOption extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 选项ID */
    private Long optionId;

    /** 所属投票ID */
    @Excel(name = "所属投票ID")
    private Long voteId;

    /** 选项内容 */
    @Excel(name = "选项内容")
    private String optionContent;

    /** 投票数 */
    @Excel(name = "投票数")
    private Long voteCount;

    public void setOptionId(Long optionId) 
    {
        this.optionId = optionId;
    }

    public Long getOptionId() 
    {
        return optionId;
    }

    public void setVoteId(Long voteId) 
    {
        this.voteId = voteId;
    }

    public Long getVoteId() 
    {
        return voteId;
    }

    public void setOptionContent(String optionContent) 
    {
        this.optionContent = optionContent;
    }

    public String getOptionContent() 
    {
        return optionContent;
    }

    public void setVoteCount(Long voteCount) 
    {
        this.voteCount = voteCount;
    }

    public Long getVoteCount() 
    {
        return voteCount;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("optionId", getOptionId())
            .append("voteId", getVoteId())
            .append("optionContent", getOptionContent())
            .append("voteCount", getVoteCount())
            .toString();
    }
}
